package com.cn.util;

import java.util.Random;

public class PhoneNum {
    public  static String[] getNum(int count) {
        String[] nums = new String[9];
        String number = null;
        for (int i = 0; i < count; i++) {       // count代表循环count次，产生count个随机号码
            number = "139";                     // 定义电话号码以139开头
            Random random = new Random();       // 定义random，产生随机数
            for (int j = 0; j < 8; j++) {
                                                // 生成0~9 随机数
                number += random.nextInt(9);
            }
            nums[i] = number;
        }
        return nums;
    }
}
